﻿using System.Collections.Generic;

namespace Bilibili.Model.Wallet
{
    public sealed class CoinsModel
    {
        public int Code { get; set; }
        public string Message { get; set; }
        public CoinsModel Data { get; set; }
        public List<CoinsModel> Result { get; set; }
        public string Time { get; set; }
        public string Reason { get; set; }
        public double Delta { get; set; }
        public string DeltaStr
        {
            get
            {
                if (Delta < 0)
                    return Delta.ToString("0.00");
                else
                    return "+" + Delta.ToString("0.00");
            }
        }
    }
}